// pages/jishuguanli/jishu/jishu.js
var app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    jishuliebiao:[]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var jishuliebiao = app.globalData.jishuliebiao[options.id]
    console.log(jishuliebiao)
    this.setData({
      jishuliebiao:jishuliebiao
    })
  },

  /**
   * 跳转到详情页
   * @param {*} e 
   */
  jishu(e){
    console.log(e.currentTarget.dataset.id)
    app.globalData.jishu = this.data.jishuliebiao.contents[e.currentTarget.dataset.id]
    wx.navigateTo({
      url: '../jishu_item/jishu_item',
    })
  },
})